<div align="right" style="height: 32px; background: aliceblue;">
    <@shiro.hasRole name="admin">
        <a href="/admin">管理后台</a> |
    </@shiro.hasRole>
    <a href="/home">首页</a>
    <#if userSelf??>
        <span> | <a href="/user/center/${userSelf.name}">${userSelf.name}</a> | <a href="/user/logout">注销</a> </span>
    <#else>
        <span> | <a href="/user/login">登录</a> | <a href="/user/register">注册</a> </span>
    </#if>
</div>